﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GuitarShop.Models
{
    public class HomeModels
    {
        GuitarShopEntities aGuitarShopEntities = new GuitarShopEntities();
        public IList<Slider> GetSliderHome()
        {
            return aGuitarShopEntities.Sliders.Where(x => x.SliderType == 1).ToList();
        }
        public IList<About> GetAboutHome()
        {
            return aGuitarShopEntities.Abouts.Where(a => a.AboutStatus == true).ToList();
        }
    }
}